import {
  BizFormItemDateRange,
  BizFormItemInput,
  QueryForm,
} from "biz-component/components/biz-form";
import { sleep } from "ut2";

export default () => {
  return (
    <QueryForm
      name="demo2"
      onFinish={async (value) => {
        await sleep();
        console.log(value);
      }}
      labelWidth={80}
      defaultColsNumber={2}
    >
      <BizFormItemInput label="商品编号" name="no" />
      <BizFormItemInput label="日期" name="date" />
      <BizFormItemDateRange
        label="时间"
        name="time"
        showTime
        colProps={{ xs: 24, md: 24, lg: 14 }}
      />
    </QueryForm>
  );
};
